const Router = require('koa-router')
const { tag,getCunt,getOneList,addList,editList,deleteList } = require('../controller/tag.controller')
const router = new Router({prefix:'/user'})
const { auth } = require("../middleware/admin.middleware")
router.get('/tag',tag)
router.post('/tag/all',auth,getCunt)
router.post('/tag/add',auth,addList)
router.post('/tag/edit',auth,editList)
router.post('/tag/delete',auth,deleteList)
router.post('/tag/detail',auth,getOneList)
module.exports = router